<?php $this->load->view('layout/header'); ?>
<div>
</div>
    <div id="container">
        <!--查询表单开始-->
        <div id="DivQuery">
            <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
            </div>
            <div id="floatBox" class="floatBox">
                <div id="drag" class="title" onmousedown="DragDialog()">
                    <h4>
                        查询</h4>
                    <span>关闭</span></div>
                <div class="content">
                    <form action="<?php echo b_url('user/userrank')?>" method="post">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                            <tr class="table_query_row">
                                <td style="width: 15%" align="right">
                                    级别名称：
                                </td>
                                <td>
                                    <input name="userrankname" type="text" id="userrankname" />
                                </td>
                                <td style="width: 15%" align="right">
                                    状态：
                                </td>
                                <td>
                                    <input type="radio" name="isclose" value="-1">不限&nbsp;&nbsp;
                                    <input type="radio" name="isclose" value="0">开放&nbsp;&nbsp;
                                    <input type="radio" name="isclose" value="1">关闭
                                </td>
                            </tr>
                            <tr class="table_query_btn">
                                <td align="right" style="width: 15%">
                                </td>
                                <td>
                                    <input type="submit" name="btnQuery" value="查询" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnQuery&quot;, &quot;&quot;, false, &quot;&quot;, &quot;&quot;, false, false))" id="btnQuery" />
                                    <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                                </td>
                                <td align="right" style="width: 15%">
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
        <!--查询表单结束-->
        <!--导航开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_nav">
            <tr>
                <td>
                    会员管理&gt;会员级别
                </td>
            </tr>
        </table>
        <!--导航结束-->
        <!--操作选项开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
            <tr>
                <td>
                    操作选项：
                    <a href="<?php echo b_url('user/userrank_add')?>">添加级别</a>
                    <a onclick="javascript:return checkEdit(this);" name="userrankid" id="lbtnEdit" src="<?php echo site_url('user/userrank_add').'/'?>" href="javascript:;" >修改级别</a>
                    <a onclick="javascript:return checkDel(this);" name="userrankid" src="<?php echo b_url('user/delete_info/userrank/userrankid/userrank/')?>" id="lbtnDel" href="javascript:;">删除级别</a>
                    <a onclick="javascript:return checkOperate(this);" name="userrankid" src="<?php echo site_url('user/edit_close/userrank/userrankid/userrank/0/').'/'?>" id="lbtnOpen" href="javascript:;)">批量开放</a>
                    <a onclick="javascript:return checkOperate(this);" name="userrankid" src="<?php echo site_url('user/edit_close/userrank/userrankid/userrank/1/').'/'?>" id="lbtnClose" href="javascript:;)">批量关闭</a>
                    <a href="javascript:SearchDialog()">查询级别</a>
                    <?php if($is_filter == 1){ ?>
                        <a href="<?php echo b_url('user/userrank')?>">撤销查询</a>
                    <?php } ?>
                </td>
            </tr>
        </table>
        <!--操作选项结束-->
        <!--列表开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
            <tr class="table_list_title">
                <td style="width: 2%">
                    <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'userrankid')" />
                </td>
                <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=AdminID&AscDesc=desc&txtAdminName=&drpAdminGroupID=-1&txtRealName=&txtEmail=&txtDepartment=&radIsClose=-1&page=1')" title="点击排序">
                    编号
                </td>
                <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=RealName&AscDesc=desc&txtAdminName=&drpAdminGroupID=-1&txtRealName=&txtEmail=&txtDepartment=&radIsClose=-1&page=1')" title="点击排序">
                    级别名称
                </td>
                <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=Email&AscDesc=desc&txtAdminName=&drpAdminGroupID=-1&txtRealName=&txtEmail=&txtDepartment=&radIsClose=-1&page=1')" title="点击排序">
                    排序
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=Department&AscDesc=desc&txtAdminName=&drpAdminGroupID=-1&txtRealName=&txtEmail=&txtDepartment=&radIsClose=-1&page=1')" title="点击排序">
                    创建人
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=Department&AscDesc=desc&txtAdminName=&drpAdminGroupID=-1&txtRealName=&txtEmail=&txtDepartment=&radIsClose=-1&page=1')" title="点击排序">
                    创建时间
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LoginNum&AscDesc=desc&txtAdminName=&drpAdminGroupID=-1&txtRealName=&txtEmail=&txtDepartment=&radIsClose=-1&page=1')" title="点击排序">
                    状态
                </td>
            </tr>
                <?php foreach($list as $k=>$v) :?>
                    <tr class="table_list_row_normal">
                        <td style="width: 2%">
                            <input name="userrankid" type="checkbox" id="userrankid" value="<?php echo $v['userrankid']?>"  />
                        </td>
                        <td style="width: 5%" >
                            <?php echo $v['userrankid']?>
                        </td>
                        <td style="width: 5%" >
                            <a href="<?php echo b_url('user/userrank_add/').$v['userrankid'];?>">
                                <?php echo $v['userrankname']?></a>
                        </td>
                        <td style="width: 10%" >
                            <?php echo $v['listid']?>
                        </td>
                        <td style="width: 10%" >
                            <?php echo $v['adminname']?>
                        </td>
                        <td style="width: 10%" >
                            <?php echo $v['addtime']?>
                        </td>
                        <td style="width: 5%" >
                            <?php 
                            if($v['isclose'] == 0){
                                echo '开放';
                            }else {
                                echo '<span style="color:red">关闭</span>';
                            }
                            ?>
                        </td>
                    </tr>
                <?php endforeach ; ?>
                    
                
        </table>
        <!--列表结束-->    
<?php $pagination->show();?>
<script src="/static/bk/js/table.js" type="text/javascript"></script>
<?php $this->load->view('layout/footer'); ?>

